home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 1
/
CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso
/
Aminet
/
biz
/
demo
/
StylusDemo.lha
/
Stylus_Demo
/
REXX
/
SelectNOT.pvrx
< prev
next >
Wrap
Text File
|
1994-04-16
|
2KB
|
45 lines
/***************************************************************************
* *
* $VER: SelectNOT.pvrx 3.0 (16.Apr.94) *
* Copyright © 1993 by Stylus, Inc. *
* Author: Jeff Blume *
* *
* This macro selects all objects NOT selected; Deselects those selected. *
* *
* *
***************************************************************************/
/*
call open STDOUT,"RAM:RxOut.txt",W
call open STDERR,"RAM:RxErr.txt",W
trace R
*/
/* Try to get exclusive lock on project window.
If can't get lock, not polite to interrupt. */
'Lock Wait'
options results
/* Get list of Layer names */
'GetLayers' LayList; NumLay = Result
/* Loop through list of layers */
do k=0 for NumLay
'LayerStatus' LayList.k; if Result=HIDE | Result=LOCK then iterate k
/* Select all objs not selected in layer */
'FirstObj' LayList.k; if Result = 0 then iterate k; else Objs.0 = Result
do i = 0
'Selected' Objs.i; Sel = Result
if Sel ~=0 then 'UnSelect' Objs.i
else 'SelectObj' Objs.i
j = i + 1
'NextObj' Objs.i; Objs.j = Result
if Objs.j = 0 then leave i
end
end /* NumLay loop */
'UnLock'